package de.shortys.myhome.api.view.tree;

import javax.swing.ImageIcon;
import javax.swing.tree.DefaultMutableTreeNode;

public class ModuleViewTreeNode extends DefaultMutableTreeNode {

	private static final long serialVersionUID = 1L;

	private String title;

	private ImageIcon icon;

	public ModuleViewTreeNode(String title, ImageIcon icon) {
		super();
		this.title = title;
		this.icon = icon;
	}

	public String getTitle() {
		return title;
	}

	public ImageIcon getIcon() {
		return icon;
	}

	@Override
	public String toString() {
		return title;
	}

	public void setTitle(String title) {
		this.title = title;
	}

	public void setIcon(ImageIcon icon) {
		this.icon = icon;
	}

}
